import request from '@/utils/request';

export async function getWrokingHoursDetailsByPage (params: any) {
    return request('/api/product/getWrokingHoursDetailsByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addWrokingHoursDetails (params: any) {
    return request('/api/product/addWrokingHoursDetails', {
    method: 'POST',
    data: params,
  });
}

export async function updateWrokingHoursDetails (params: any) {
    return request('/api/product/updateWrokingHoursDetails', {
    method: 'POST',
    data: params,
  });
}

export async function delWrokingHoursDetails (params: any) {
    return request('/api/product/delWrokingHoursDetails', {
    method: 'POST',
    data: params,
  });
}


export async function exportWrokingHoursDetails(params: any) {
    return request('/api/product/exportWrokingHoursDetails', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getWrokingHoursDetailsByPage, addWrokingHoursDetails, updateWrokingHoursDetails, delWrokingHoursDetails, exportWrokingHoursDetails }
